package com.jackiechan.day17;

public class Test {
    public static void main(String[] args) throws ClassNotFoundException {
        show();
    }
    public static void show() throws ClassNotFoundException {
        // 获取
        // Class.forName("包名.类名")
        Class c2 = Class.forName("java.lang.String");
        // 对象.getClass
        Class c1 = new String().getClass();
        // 类名.Class
        Class c = String.class;
        System.out.println(c);
        System.out.println(c.getPackage());
        System.out.println(c.getPackage().getName());
        System.out.println(c.getSimpleName());
        System.out.println(c.getName());
        System.out.println(c.getClass());

    }
}

